If I want to show YouTube videos on Drupal Blog then do I need to add a module?
What steps should I take for this?

Thanks.

Philly

Comments

steve hanson’s picture

Either just
1. Put the applicable javascript from YouTube right into your post (you'll need to be able to put html into your post)

2. Use the video module. This may be better or worse depending on what you're trying to do. If you want to put it right into your post, just adding the javascript is probably easiest.

Ah wait - 3 choices - you could also look a the embed filter http://drupal.org/project/embedfilter

Steve Hanson
Principal Consultant Cruiskeen Consulting LLC
http://www.cruiskeenconsulting.com

Steve Hanson
Publisher Eye On Dunn County
https://eyeondunn.com

Christefano-oldaccount’s picture

There's another input filter-type module now called googtube, which appears to me to be much easier for non-techie users to use. I'm already using embedfilter on my sites, though. In addition to supporting more video services, I'm familiar with how embedfilter acts to prevent XSS problems.

Parcellian’s picture

I tried installing googtube. I added the module to my module folder. Then I enabled the module in the block settings. But I don't know how to use this feature. I copied a link from a youtube video and posted it into a blog post, but nothing showed. Anyone know what I should do? Thanks.

Christefano-oldaccount’s picture

It's an input filter so you'll need to turn it on in Administer -> Settings -> Input formats.

Parcellian’s picture

Okay, I set the input format to allow the googtube filter. However, after posting the youtube link, I still get a blank post on the post. Below is the youtube link I pasted in:

Parcellian’s picture

Anyone have any answers here? Thanks.

Christefano-oldaccount’s picture

Does your input filter allow the embed and param tags used by googtube?

Parcellian’s picture

I'm not sure how I can confirm this. When I view the googtube filter in the 'Filtered HTML' input format after clicking configure, I see
googtube selected and the following message reads:
"Youtube and google video links are automatically converted into embedded videos."

I also see this message under "Formatting guidelines"

These are the guidelines that users will see for posting in this input format. They are automatically generated from the filter settings.

* Allowed HTML tags:

  1. * Lines and paragraphs break automatically.
    * Youtube and google video links are automatically converted into embedded videos.

------

Does this answer your question? Thanks.

Christefano-oldaccount’s picture

I meant to say input format, not input filter.

If you're using the Filtered HTML input format (which is input format 1 by default) go to http://example.com/?q=admin/filters/1/configure (where example.com is replaced with your domain name) and add <embed> and <param> as permitted HTML tags.

The link above assumes that your site is running some version of Drupal 4.7.x. I don't know if googtube is update to D5 yet, but if it has been then the link is something like http://example.com/?q=admin/settings/filters/1/configure

Parcellian’s picture

Woohoo, it works now!

Parcellian’s picture

Thanks Christefano. It works great now! This module is sooo cool!

Christefano-oldaccount’s picture

Great news! I'm glad it's working -- and more, that you use it.

Not many users would stick with a malfunctioning/misconfigured module. Good job.